package com.codeOfDoom.Sets.SetsCard.SetCardHelpers
{
	public class CardShading
	{
		//type safe enum
		private var _name:String;
		private static var _created:Boolean = false;
		//static block of code. created when the class is loaded into memory. 
		{
			_created = true;
		}
		public function CardShading(name:String){
			if (_created){
				throw new Error(name + " is already created");
			}
			_name = name;
		} 
		public function toString():String{
			return _name;
		}
		
		public static const FILLED:CardShading = new CardShading("filled");
		public static const STRIPED:CardShading = new CardShading("striped");
		public static const EMPTY:CardShading = new CardShading("empty");
		public static const SHADINGS:Array = [FILLED,STRIPED,EMPTY];
	}
}
internal class EnumRestrictor {}